﻿using Abp.Application.Services;
using AVIS.OutBound.Stores.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace AVIS.OutBound.Stores
{
    /// <summary>
    /// 网点(门店)的应用服务类
    /// </summary>
    public interface IStoreAppService : IApplicationService
    {
        /// <summary>
        /// 获取指定城市的门店（包含附近门店）
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        [HttpGet]
        List<StoreOutput> GetStoresByCity(GetStoresByCityInput input);

        /// <summary>
        /// 获取指定Code的门店信息
        /// </summary>
        /// <param name="input">请求参数</param>
        /// <returns></returns>
        [HttpGet]
        StoreOutput GetStoreByCode(GetStoreByCodeInput input);

        /// <summary>
        /// 搜索门店信息
        /// </summary>
        /// <param name="k">关键字，按中英名称或城市或地区进行查询</param>
        /// <returns></returns>
        [HttpGet]
        IList<StoreOutput> QueryStore(string k);
    }
}
